package org.example.Service.Impl;

import org.example.Dao.BookDao;
import org.example.Service.BookService;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: bjc
 * Date: 2025-06-08
 * Time: 14:36
 */
public class BookServiceImpl implements BookService {
    //删除new创建对象方式，只提供Dao层属性
    private BookDao bookDao;

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    @Override
    public void save() {
        System.out.println("book service save...");
        bookDao.save();
    }
}
